package vue;

import java.util.ArrayList;

import bean.CombinaisonBean;
import bean.UserBean;

public class GestionApplication {

	private static GestionApplication instance;
	
	public static ArrayList<UserBean> listUsers;
	public static ArrayList<CombinaisonBean> listCombinations;
	
	public static GestionApplication getInstance() {
		if(instance == null)
			instance = new GestionApplication();
		return instance;
	}
	
	private GestionApplication()
	{
		listUsers = new ArrayList<UserBean>();
		listCombinations = new ArrayList<CombinaisonBean>();
	}
	public void addUser(UserBean u)
	{
		listUsers.add(u);
	}
	
	public void addCombination(CombinaisonBean c)
	{
		listCombinations.add(c);
	}
	
}

